<div class="page-group">
	<div id="page-layout" class="page page-current">
		<header class="bar bar-nav">
			<a href="javascript:history.go(-1);" class="icon icon-left pull-left"></a>
			<a href="javascript:location.reload();"
				class="icon icon-refresh pull-right"></a>
			<h1 class="title"><%=name %>主页</h1>
		</header>
		<div class="content native-scroll wjt-roommanage-content">
			<div class="card" style="margin: 0; margin-bottom: 0.5rem">
				<div class="card-content">
					<div class="list-block media-list">
						<ul>
							<li class="item-content">
								<div class="item-media">
									<img
										src="
	          		<% if(logourl == null) {%>
	          			http://qiniucdn.haojs.com.cn/wjtlogo.jpg
	          		<% }else{ %>
	          			<%=logourl %>
	          		<% } %>
	          		"
										width="44">
								</div>
								<div class="item-inner">
									<div class="item-title-row">
										<div class="item-title"><%=name %></div>
									</div>
									<div class="item-subtitle">累计访问人次：<%=attends %></div>
								</div>
							</li>
						</ul>
					</div>
				</div>
			</div>



			<div class="content-block-title">直播间列表：</div>

			<% rooms.forEach(function(item){ %>

			<div class="card">
				<div class="card-content">
					<div class="list-block media-list">
						<ul>
							<li class="item-content">
								<div class="item-media">
									<img
										src="
	          <% if(item.thumburl == null){ %>
	          	http://qiniucdn.haojs.com.cn/wjtlogo.jpg
	          <% }else{ %>
	          	<%=item.thumburl %>
	          <% } %>
	          "
										width="44">
								</div>
								<div class="item-inner">
									<div class="item-title-row">
										<div class="item-title"><%=item.name%></div>
									</div>
									<div class="item-subtitle" style="font-size: 12px;">开始时间：<%=new
										Date(item.time).toLocaleString().replace(/:\d{1,2}$/,' ')%></div>
								</div>
							</li>
						</ul>
					</div>
				</div>
				<div class="card-footer">
					<span> 
					</span>
					<span> <a
						href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxdd8f1df2a974f04f&redirect_uri=http://www.haojs.com.cn/form/api/wm/route&response_type=code&scope=snsapi_base&state=/wm/room/<%=item.uuid%>/attend#wechat_redirect"
						class="button button-round button-warning button-fill">进入直播间</a>
					</span>
				</div>
			</div>


			<% }); %>



			<div>&nbsp;</div>
			<div style="text-align: center; font-size: 12px;">下面没有直播间了……</div>
			<div>&nbsp;</div>
			<div>&nbsp;</div>
			<div>&nbsp;</div>
		</div>
	</div>
</div>